package com.zgy.spring.iocXml;

import com.zgy.spring.iocXml.entity.User;

public class testIocXml {

    public static void main(String[] args) throws Exception {
        MyClassPathXmlApplicationContext applicationContext = new MyClassPathXmlApplicationContext("spring.xml");
        User user = (User) applicationContext.getBean("user");
        System.out.println(user);
    }
}
